outerHtml

abstract fun outerHtml(): String

Returns a string with the HTML serialization of this element and its descendants.

Since

7.1

Throws

when this instance is closed


abstract fun outerHtml(html: String): Boolean

Replaces the element and all of its descendants with a new DOM tree constructed by parsing the given html.

Return

true when the HTML of the element was successfully replaced

Since

7.1

Parameters

html

a new HTML of this element

Throws

when this instance is closed